home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / likene1a / myprog8.frm < prev    next >
Text File  |  1999-09-24  |  3KB  |  102 lines

  1. VERSION 5.00
  2. Begin VB.Form Form7 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Play file"
  5.    ClientHeight    =   1080
  6.    ClientLeft      =   45
  7.    ClientTop       =   345
  8.    ClientWidth     =   2520
  9.    ControlBox      =   0   'False
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   1080
  14.    ScaleWidth      =   2520
  15.    ShowInTaskbar   =   0   'False
  16.    StartUpPosition =   3  'Windows Default
  17.    Begin VB.TextBox Text1 
  18.       BeginProperty Font 
  19.          Name            =   "Arial"
  20.          Size            =   8.25
  21.          Charset         =   0
  22.          Weight          =   700
  23.          Underline       =   0   'False
  24.          Italic          =   0   'False
  25.          Strikethrough   =   0   'False
  26.       EndProperty
  27.       Height          =   285
  28.       Left            =   0
  29.       TabIndex        =   2
  30.       Top             =   360
  31.       Width           =   2535
  32.    End
  33.    Begin VB.CommandButton Command2 
  34.       Caption         =   "Cancel"
  35.       BeginProperty Font 
  36.          Name            =   "Arial"
  37.          Size            =   8.25
  38.          Charset         =   0
  39.          Weight          =   700
  40.          Underline       =   0   'False
  41.          Italic          =   0   'False
  42.          Strikethrough   =   0   'False
  43.       EndProperty
  44.       Height          =   375
  45.       Left            =   1320
  46.       TabIndex        =   1
  47.       Top             =   720
  48.       Width           =   1215
  49.    End
  50.    Begin VB.CommandButton Command1 
  51.       Caption         =   "Ok"
  52.       BeginProperty Font 
  53.          Name            =   "Arial"
  54.          Size            =   8.25
  55.          Charset         =   0
  56.          Weight          =   700
  57.          Underline       =   0   'False
  58.          Italic          =   0   'False
  59.          Strikethrough   =   0   'False
  60.       EndProperty
  61.       Height          =   375
  62.       Left            =   0
  63.       TabIndex        =   0
  64.       Top             =   720
  65.       Width           =   1215
  66.    End
  67.    Begin VB.Label Label1 
  68.       Caption         =   "List the WAV dir. and filename"
  69.       BeginProperty Font 
  70.          Name            =   "Arial"
  71.          Size            =   8.25
  72.          Charset         =   0
  73.          Weight          =   700
  74.          Underline       =   0   'False
  75.          Italic          =   0   'False
  76.          Strikethrough   =   0   'False
  77.       EndProperty
  78.       Height          =   255
  79.       Left            =   0
  80.       TabIndex        =   3
  81.       Top             =   0
  82.       Width           =   2535
  83.    End
  84. End
  85. Attribute VB_Name = "Form7"
  86. Attribute VB_GlobalNameSpace = False
  87. Attribute VB_Creatable = False
  88. Attribute VB_PredeclaredId = True
  89. Attribute VB_Exposed = False
  90. Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
  91. Private Sub Command1_Click()
  92.     Dim filename As String
  93.     Dim rc As Long
  94.     filename = (Text1.Text)
  95.     rc = sndPlaySound(filename, 1)
  96. End Sub
  97.  
  98. Private Sub Command2_Click()
  99. Unload Form7
  100. End Sub
  101.  
  102.